<template>
  <div id="loading" v-show="show">
    <div>
      {{ tips }}
    </div>
  </div>
</template>

<script>
export default {
  name: "loading",
  props: {
    tips: String,
    show: Boolean,
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<style lang=less scoped>
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.5); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  div {
    max-width: 250px;
    // height: 150px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
    line-height: 24px;
  }
}
</style>
